package org.brisling.websocket.command;

import java.util.Map;

import org.brisling.base.MCommandInf;
import org.brisling.docManage.queryService.QueryDoctypeService;
import org.brisling.websocket.domain.WSView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 
 * <p>Title: CommandInvoke</p>
 * <p>Description: </p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年6月25日 下午5:42:12
 */
@Service("commandInvoke")
public class CommandInvoke {
	
	@Autowired
	private QueryDoctypeService queryDoctypeService;
	
	@SuppressWarnings("rawtypes")
	public WSView invoke(String module,Map<String,Object> map){
		
		WSView v = null;
		if(module!=null && map!=null){
			switch(module){
			case "home":
				v = queryDoctypeService.exec(map);
				break;
			}
		}
		return v;
	}
}
